<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script type="text/javascript">
        function 你好() {
          arg = "你好，世界"
          window.location = 'skp:hei@' + arg
        }
        function 刷新amtf() {
          arg = "刷新amtf"
          window.location = 'skp:刷新amtf@' + arg
          // alert(window.location)
        }

        function 清除未使用() {
          arg = "清除未使用"
          window.location = 'skp:清除未使用@' + arg
        }
        function 匹配尺寸() {
          arg = "匹配尺寸"
          window.location = 'skp:匹配尺寸@' + arg
        }
        function 对齐() {
          window.location = 'skp:对齐@' + arg
        }
        function 另存为排版模型() {
          window.location = 'skp:另存为排版模型@' + arg
          // alert(window.location)
        }
        function 删除指定图层() {
          window.location = 'skp:删除指定图层@' + arg
        }
        function 删除隐藏项目() {
          window.location = 'skp:删除隐藏项目@' + arg
        }
        function 删除or炸开无板字组件() {
          window.location = 'skp:删除or炸开无板字组件@' + arg
        }
        function 炸开所有子组件() {
          window.location = 'skp:炸开所有子组件@' + arg
        }
        function 组件改名() {
          window.location = 'skp:组件改名@' + arg
        }
        function 组件转群组() {
          window.location = 'skp:组件转群组@' + arg
        }
        function 一键排版预处理() {
          window.location = 'skp:一键排版预处理@' + arg
        }
        function 延伸背板() {
          arg=document.getElementById("延伸值").value
          // alert(arg)
          window.location = 'skp:延伸背板@' + arg
        }


        function 文件改名() {
          window.location = 'skp:文件改名@' + arg
        }
        function 画柜子(arg) {
          // alert(arg)
          window.location = 'skp:画柜子@' + arg
        }
        function 重载ABF() {
          arg = "重载ABF？"
          window.location = 'skp:重载ABF@' + arg
        }
    </script>
</head>

<body>
    <!-- Send points to JavaScript -->
    <input type="button" onclick="刷新amtf()" value="刷新amtf" />
    <hr>
    <input type="button" onclick="清除未使用()" value="清除未使用" />
    <hr>
    <input type="button" onclick="匹配尺寸()" value="匹配尺寸" />
    <input type="button" onclick="对齐()" value="对齐" />
    <hr>
    <input type="button" onclick="另存为排版模型()" value="另存为排版模型" />
    <input type="button" onclick="删除指定图层()" value="删除指定图层" />
    <input type="button" onclick="删除隐藏项目()" value="删除隐藏项目" />
    <input type="button" onclick="删除or炸开无板字组件()" value="删除or炸开无板字组件" />
    <input type="button" onclick="炸开所有子组件()" value="炸开所有子组件" />
    <input type="button" onclick="组件改名()" value="组件改名" />
    <input type="button" onclick="组件转群组()" value="组件转群组" />
    <input type="button" onclick="一键排版预处理()" value="一键排版预处理" />
    <input type="button" onclick="延伸背板()" value="延伸背板" />
    <input id="延伸值" value="5" size="2" />mm
    <!-- <input type="button" onclick="炸开所有子组件()" value="另存为排版模型" /> -->
    <!-- <input type="button" onclick="文件改名()" value="文件改名" /> -->
    <hr>
    <h3>画柜子↓</h3>
    <input type="button" onclick="画柜子('背板')" value="背板" />
    <hr>
    <input type="button" onclick="重载ABF()" value="重载ABF" />

</body>

</html>
